package com.lvy.hczn.front.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.business.SaleOrderDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SaleOrderDetailMapper extends BaseMapper<SaleOrderDetail> {

    /**
     * 退货拒收入库列表
     *
      * @param saleOrderDetail
     * @return
     * @author yw
     * @date 2023-11-03 10:17:47
     */
    List<SaleOrderDetail> returnList(@Param(value = "saleOrderDetail") SaleOrderDetail saleOrderDetail);

    /**
     * 退货入库统计列表（根据是否大件商品分组）
     *
     * @param saleOrderDetail
     * @return
     * @author yw
     * @date 2023-11-03 10:17:47
     */
    List<SaleOrderDetail> selectReturnCount(@Param(value = "saleOrderDetail") SaleOrderDetail saleOrderDetail);
}